package com.example.mystoryapp2.domain

import android.text.TextUtils
import com.example.mystoryapp2.enums.EnumRole

class UserInfo {
    init {

    }

    constructor(
        username: String? = null,
        password: String? = null,
        email: String? = null,
        role: String? = null,
        bio: String? = null,
        name: String? = null
    ) {
        this.userName = username
        this.password = password
        this.email = email
        this.role = role
        this.bio = bio
        this.name = name
    }

    var name: String? = null

    var userId: Int? = null

    var email: String? = null

    var password: String? = null

    var role: String? = null

    var userName: String? = null

    var bio: String? = null

    var profilePicture: String? = null

    fun isAuthor(): Boolean {
        return TextUtils.equals(role, EnumRole.AUTHOR.value)
    }

}